/*
 * @Autor: Ruohong Yu
 * @Date: 2022-12-05 13:27:24
 * @Description: file content
 * @FilePath: \ebook\src\utils\boost.js
 */
// 添加无重复元素的数组
// eslint-disable-next-line no-extend-native
Array.prototype.pushWithoutDuplicate = function () {
  for (let i = 0; i < arguments.length; i++) {
    const arg = arguments[i]
    if (this.indexOf(arg) === -1) {
      this.push(arg)
    }
  }
}
